package tunafish2k.rpgex.registries;

import net.minecraft.entity.damage.DamageType;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.util.Identifier;
import tunafish2k.rpgex.RpgEX;
import tunafish2k.rpgex.effects.BleedingEffect;

public class EffectRegistry {
    public static final BleedingEffect BLEEDING = new BleedingEffect();
    public static final RegistryKey<StatusEffect> BLEEDING_KEY = RegistryKey.of(RegistryKeys.STATUS_EFFECT,
            Identifier.of("rpgex", "bleeding"));

    public static StatusEffect register(String id, StatusEffect statusEffect) {
        return Registry.register(Registries.STATUS_EFFECT, Identifier.of(RpgEX.MOD_ID, id), statusEffect);
    }

    public static void registerAll() {
        register("bleeding", BLEEDING);
    }
}
